Repository navigation
chore(deps): update dependency fast-copy to v4 - #2774
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Review Skipped - Label Excluded |
renovate
Bot
force-pushed
the
renovate/fast-copy-4.x
branch
2 times, most recently
from
October 27, 2026 23:07
c498f13 to
d1b15fd
Compare
renovate
Bot
force-pushed
the
renovate/fast-copy-4.x
branch
from
October 28, 2026 01:34
d1b15fd to
4737fee
Compare
renovate
Bot
force-pushed
the
renovate/fast-copy-4.x
branch
from
October 28, 2026 22:50
4737fee to
f4bb0d0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.2→^4.0.0Release Notes
planttheidea/fast-copy (fast-copy)
v4.3.1Compare Source
Bug fixes
SharedArrayBuffers with thearrayBuffermethod,preserving their contents; they previously fell through to the object copier, so copies were empty, and a
strictcopy of an object containing both a
SharedArrayBufferand aDataViewover it could throw (thanks@mayankdhingra02)
DataViewwith thearrayBuffermethod, so that a custom
arrayBufferoverride is honored; the default copier was previously always usedArrayBuffersand growable
SharedArrayBuffers; copies were previously instances of the base class (thanks@umtong)
SharedArrayBuffers; copies were previously instances of the base classv4.3.0Compare Source
Enhancements
RegExpproperties instrictmode (thanks@blueDaydreaming725)
strictmode for allremaining copied types:
ArrayBuffer, typed arrays (includingBuffer),Blob,DataView, and primitive wrappers(
Boolean,Number, andString)strictmode, circular and repeated references to anyof these types now resolve to a single copy, including a
DataViewand the buffer it viewsBug fixes
ArrayBuffers and growableSharedArrayBuffers resizable, with the samemaxByteLength; copies were previously fixed-lengthv4.2.0Compare Source
Enhancements
Dateproperties instrictmode (thanks@xiehuanyi)
Bug fixes
Constructoris a function before performingnative code check, preventing edge case throw condition (thanks @fhgffy)
__proto__properties when copying objects(thanks @feritcemkahraman)
v4.1.2Compare Source
byteOffsetandbyteLengthof a copiedDataView. The copy previously covered the entire backing buffer, so a view over part of a buffer read from the wrongposition, and reads beyond its original bounds no longer threw.
Thanks to @pralav-25 for identifying and fixing this.
v4.1.1Compare Source
Bufferinto memory it owns,instead of returning a view over the original's memory.
Bufferoverridesslicewith one that does not copy, somutating the copy previously mutated the original.
nullprototype for the internal map oftag-specific copiers, so that a value carrying a custom
Symbol.toStringTagcannot resolve to an inheritedObject.prototypemember as its copier. Tags such astoString,valueOf, orhasOwnPropertypreviously produced agarbage copy or threw.
v4.1.0Compare Source
maxDepthoption tocreateCopier, bounding thenumber of nested objects traversed (defaults to
1000, passInfinityto traverse without a limit)MaxDepthExceededErrorwhen a value isnested more deeply than
maxDepth, instead of exhausting the call stack with a nativeRangeError; the error extendsRangeError, so existing handling continues to workThanks to @lenny-ts for identifying this.
Internal changes
Stateobject passed to custommethodsnow includes adepthproperty. This is maintained internally andshould not be modified, but it is a required property on the exported
Statetype, so any code constructing aStatedirectly (such as a test mock) will need to provide it.
v4.0.4Compare Source
for...inloop withhasOwnPropertycheck tojust use
Object.keys(slight hit to small object iterations, but big win in large objects)forloops to instead befor...of(flat orimproved across the board)
.forEach()loops to instead befor...ofv4.0.3Compare Source
Uint64Arrayin favor ofBigInt64Array/
BigUint64Array) (fixes #128)v4.0.2Compare Source
#111)
v4.0.1Compare Source
package
v4.0.0Compare Source
BREAKING CHANGES
copymethod is now a named export, and the default export has been removed.Symbol,WeakMap, andRegExp.prototype.flagsare now expected to bepresent.
createCopiernow receives an object of options. The methods passed previously are namespaced under themethodskeyin that options object.
createStrictCopierhas been removed; please use thestrictoption passed tocreateCopierConfiguration
📅 Schedule: (UTC)
* 0-4,22-23 * * 1-5)* * * * 0,6)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.